//
//  MessageViewController.swift
//  weibo
//
//  Created by tomato on 2021/9/8.
//

import UIKit

class MessageViewController: VisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        vistorView?.setupVisitorInfo(imageName:"visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
        //设置UI
        setupUI()
    }
}

// MARK: - 设置UI
extension MessageViewController{
    private func setupUI(){
        //1、设置导航栏
        setupNavigationBar()
    }
     
    private func setupNavigationBar(){
        // 1.设置左侧的Item
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "logo")
        // 2.设置右侧的Item
        let size = CGSize(width: 30, height: 40)
        let historyItem = UIBarButtonItem(imageName: "image_my_history", highImageName: "Image_my_history_click", size: size)
        let searchItem = UIBarButtonItem(imageName: "btn_search", highImageName: "btn_search_clicked", size: size)
        let qrcodeItem = UIBarButtonItem(imageName: "Image_scan", highImageName: "Image_scan_click", size: size)
        navigationItem.rightBarButtonItems = [historyItem, searchItem, qrcodeItem]
    }
}
